import { axios } from "@/services/axios";

const Payment = {
  get: data => axios.get(`api/payment/${data.id}`),
  getlist: params => axios.post(`api/payment/list`, params),
  create: data => axios.post("api/payment", data),
  getid: data => axios.get("api/payment", data),
  save: data => axios.post(`api/payment/${data.id}`, data),
  delete: data => axios.post(`api/payment/delete/${data.id}`),
  getuninlist: params => axios.post(`api/paymentunin/list`, params),
  getunoutlist: params => axios.post(`api/paymentunout/list`, params),
};

export default Payment;